import type { RouteRecordRaw } from "vue-router";

/**标准路由meta */
export interface BaseMeta {
  title?: string;
}
/**弹窗路由 */
export interface DialogRouter {
  meta: DialogMeta;
  children?: Array<RouteRecordRaw & DialogRouter>;
}
/**弹窗路由meta */
export interface DialogMeta extends BaseMeta {
  dialog?: {
    showBack?: boolean;
    footer?: string;
    okBtnText?: string;
    noBtnText?: string;
  };
}
/**底部导航路由 */
export interface TabbarRouter {
  meta: TabbarMeta;
}
/**底部导航路由meta */
export interface TabbarMeta extends BaseMeta {
  tabbar: {
    /**字体图标 */
    fontIconActive: string;
    /**选中时的字体图标 */
    fontIcon: string;
  };
}
